# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=shellcodecs
pkgver=0.1
pkgrel=8
groups=('blackarch' 'blackarch-exploitation')
pkgdesc='A collection of shellcode, loaders, sources, and generators provided with documentation designed to ease the exploitation and shellcode programming process.'
url='http://www.blackhatlibrary.net/Shellcodecs'
arch=('x86_64' 'aarch64')
license=('custom')
depends=('python2' 'automake')
source=("http://blackhatlibrary.net/releases/$pkgname.tar.gz")
sha512sums=('d77b9c5324c30f8f01eceed4c2c3b7f97e2b735302b479e74e1b7d8420699e8b91ce8a95a152ad4c8780a45ca92dba4bf40483de327b9ed1856467b0621ca0a7')

build(){
  cd shellcode

  make
}

package() {
  cd shellcode

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  cp -a  --no-preserve=ownership * "$pkgdir/usr/share/$pkgname"
}

